<?php
/**
 * Created by Pixoid.
 * Date: 16.03.11
 * @version 1.0
 */

function __autoload($class){

      $dirs = array(
         $_SERVER['DOCUMENT_ROOT'] . "/inc/",
      );

      $ext = ".php";

      foreach($dirs as $dir)
         if(file_exists($dir . $class . $ext)){
            require_once($dir . $class . $ext);
            $array[] = $dir . $class . $ext;
         }

      if($array !== false)
         return $array;
      return false;
}
